﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="ProduceStorage.aspx.cs" Inherits="Ewts.Production.ProduceStorage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link rel="stylesheet" href="/css/tab4.css" type="text/css" />
         <link type="text/css" href="/css/tab1.css" rel="stylesheet" />
           <link type="text/css" href="/css/tab2.css" rel="stylesheet" />
   <style type="text/css">
         .instorClass
        {
	        height: 100%;
	        width: 100%;
	        margin: 0px;
	        padding-top: 1px;
	        padding-left: 1px;
	        border-top-style: none;
	        border-right-style: none;
	        border-bottom-style: none;
	        border-left-style: none;
        }
    
        .hiddenloadid{}
        .hiddencjoid{}
        .dropComeunDer{}
        .hiddenOper{}
        .hiddenInSid{}
        .HidPostion{}
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
    <input type="hidden" id="hidinsid" runat="server" class="hidinsid" />
    <input type="hidden" id="Hidden3" runat="server" class="hidinid" />
   <input type="hidden" id="hidgraphic" runat="server" class="hidgraphic" />
   <input type="hidden" id="hidintype" runat="server" class="hidintype" />
   <input type="hidden" id="hidInDepart" value="" class="hidInDepart" runat="server" />
   <input type="hidden" id="hidOutDepart" value="" class="hidOutDepart" runat="server" />
   <input type="hidden" id="hidInstype" class="hidInstype" value="F" runat="server" />
   <input type="hidden" id="hidwrlno" class="hidwrlno" value="" runat="server" />
    <input type="hidden" id="hiddenloadid" class="hiddenloadid" value="0" runat="server" />
    <input type="hidden" id="hiddencjoid" class="hiddencjoid" value="0" runat="server" />
    <input type="hidden" id="HidPostion" value="0" class="HidPostion"/>
    <table id="tabbInfo" style="width: 1300px;">
        <tr>
            <td style="text-align: right; height: 25px; width: 15%;"> LoadNum：</td>
            <td style="text-align: left; width: 20%;">
                <span runat="server" id="inputLoadNum" class="inputLoadNum"></span>
            </td>

            <td  style="text-align: center; width: 30%;">
                <span runat="server" id="spanlf" class="cssladdf" > 领料 + 辅料 = 0.00 + 0.00 = 0.00</span>
            </td>


            <td style="text-align: right; height: 25px; width: 15%;">
                领料单号：
            </td>
            <td style="text-align: left; width: 20%;">
                <span runat="server" id="txtSrcOutSid" class="input"></span>
            </td>
        </tr>
        <tr>
            <td  style="text-align: right; height: 25px; width: 15%;">
                入库单号：
            </td>
            <td style="text-align: left; width: 20%;">
                 <span runat="server" id="spanWrlNo" class="tdSpanWrlNo"></span>
            </td>

            <td style="text-align: center; width: 30%;">
                 <span runat="server" id="spanrs" class="cssradds" >  入库 + 损耗 = 0.00 + 0.00 = 0.00</span>
            </td>

            <td  style="text-align: right; height: 25px; width: 15%;">
                领料重量：
            </td>
            <td style="text-align: left; width: 20%;">
                <span runat="server" id="spanTotal" class="tdTotal"></span>
            </td>
        </tr>
    </table>
    <div class="tab1">
        <h1>生产辅料&nbsp;&nbsp;&nbsp;<label style="color:#ccc;" runat="server" id="labFlNo" class="labFlNo"></label></h1>
        <table border="1" cellpadding="0" id="tabfl" cellspacing="0">
            <tr>
                <th scope="col">序号</th>
                <th scope="col">辅料单号</th>
                <th scope="col">物品编码</th>
                <th scope="col">物品名称</th>
                <th scope="col">毛重</th>
                <th scope="col">净重</th>
                <th scope="col">数量</th>
                <th scope="col">备注</th>
                <th scope="col" colspan="2">操作</th>
            </tr>
            <tr>
                <td></td>
                 <td class="labFlNo">
                     
                </td>
               
                <td>
                     <input type="text" name="textfield" id="txtgcode_fl" style="width: 120px;" /></td>
                <td>
                    <input type="text" name="textfield" id="txtgname_fl" style="width: 200px;" />
                </td>
                <td style="width: 35px;">
                    <input type="text" name="textfield" id="txtgwt_fl" style="width: 80px" />
                </td>
                <td>
                    <input type="text" name="textfield" id="txtnwt_fl" style="width: 80px" value="0" />
                </td>
                <td>
                    <input type="text" name="textfield" id="txtqty_fl" style="width: 60px" />
                </td>
                <td>
                    <input type="text" name="textfield" id="txtremark_fl" style="width: 200px" />
                </td>
                <td colspan="2">
                    <input type="button" id="btnfl_insert" value="插入" onclick="flInsert()" />
                    <input type="hidden" id="hidflid" value="0" />
                </td>
            </tr>
            <asp:Repeater ID="reptFl" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%# Container.ItemIndex + 1 %></td>
                        <td><%# Eval("tabno")%></td>
                        <td><%# Eval("GoodsCode")%></td>
                        <td><%# Eval("GoodsName")%></td>
                        <td><%# Eval("gwt")%></td>
                        <td><%# Eval("nwt")%></td>
                        <td><%# Eval("qty")%></td>
                        <td><%# Eval("remark")%></td>
                        <td>
                            <img src='/images/jian.png' alt='<%# Eval("id") %>' onclick='javascript:flDelClick(this)'
                                width='16' height='17' class='jian' />
                        </td>
                        <td>
                            <img src='/images/icons/button_update.gif' alt='<%# Eval("id") %> ' onclick='javascript:flGet(this)'
                                height='17' class='update' />
                            <input id="hid_<%# Eval("id") %>" type="hidden" value='<%# Eval("id") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
        <div></div>
        <div class="align"></div>
    </div>
    <div class="tab1">
	<h1>生产损耗&nbsp;&nbsp;&nbsp;<label style="color:#ccc;" runat="server" id="labShNo" class="labShNo"></label></h1>
        <table border="1" cellpadding="0" id="tabsh" cellspacing="0">
         <tr>            
            <th scope="col">序号</th>
            <th scope="col">损耗单号</th>
            <th scope="col">物品编码</th>
            <th scope="col">物品名称</th>
            <th scope="col">毛重</th>
            <th scope="col">净重</th>
            <th scope="col">数量</th>

            <th scope="col">备注</th>
            <th scope="col">操作</th>
         </tr>
        <tr>
            <td></td>
            <td class="labShNo"></td>
            <td>
                <input type="text" name="textfield" id="txtgcode_sh" style="width:120px;" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtgname_sh" style="width:200px;" />
            </td>
            <td style="width:35px;">
                 <input type="text" name="textfield" id="txtgwt_sh" style="width:80px" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtnwt_sh" style="width:80px" value="0"  />
            </td>
            <td>
                <input type="text" name="textfield" id="txtqty_sh" style="width:60px" />
            </td>
            <td>
                <input type="text" name="textfield" id="txtremark_sh" style="width:200px" />
             </td>
            <td colspan="2">
                <input type="button" id="btnShInsert" value="插入" onclick="shInsert()"/> 
                <input type="hidden" id="hidshid" value="0" />
            </td>
        </tr>
      <asp:Repeater ID="reptSh" runat="server">
        <ItemTemplate>
        <tr>
            <td><%# Container.ItemIndex + 1 %></td>
            <td><%# Eval("tabno")%></td>
            <td><%# Eval("GoodsCode")%></td>
            <td><%# Eval("GoodsName")%></td>
            <td><%# Eval("gwt")%></td>
            <td><%# Eval("nwt")%></td>
            <td><%# Eval("qty")%></td>
            <td><%# Eval("remark")%></td>
            <td><img src='/images/jian.png' alt='<%# Eval("id") %>'  onclick='javascript:shDelClick(this)'  width='16' height='17' class='jian'/></td>
            <td> 
                <img src='/images/icons/button_update.gif' alt='<%# Eval("id") %> ' onclick='javascript:shGet(this)' height='17' class='update'/>
                <input id="hid_<%# Eval("id") %>" type="hidden" value='<%# Eval("id") %>' />    
            </td>
               </tr> 
        </ItemTemplate>
      </asp:Repeater>
    </table>
    <div ></div>
    <div class="align"></div>
</div>

<div class="clear"></div>
<div class="tab1">
	<h1>生产返还&nbsp;&nbsp;&nbsp;<label style="color:#ccc;" runat="server" class="labRSNo" id="labRSNo"></label></h1>
        <input type="hidden" id="hidoutid" value="0" class="hidoutid" runat="server" />
        <input type="hidden" id="hidLoadnum" value="0"  runat="server" />
        <input type="hidden" id="hidoutsno" value="0" class="hidoutsno" runat="server" />
        <input type="hidden" id="Hidden1" value="" class="hidInDepart" runat="server" />
        <input type="hidden" id="Hidden2" value="" class="hidOutDepart" runat="server" />
        <input type="hidden" id="hidmonth" value="0" class="hidmonth" runat="server" />        
        <input type="hidden" id="hiddenOper" value="0" class="hiddenOper"  runat="server" />
 <table border="0" cellpadding="0" id="tab" cellspacing="0">
         <tr>            
            <th scope="col">序号</th>
            <th scope="col">物品编码</th>
            <th scope="col">物品名称</th>
            <th scope="col">毛重</th>
            <th scope="col">净重</th>
            <th scope="col">数量</th>
            <th scope="col">库位</th>
            <th scope="col">备注</th>
            <th scope="col">入库时间</th>
             <th scope="col">条形码</th>
             <th scope="col">锁定</th>
             <th scope="col" colspan="3">操作</th>

            
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="text" name="textfield" tabindex="1" id="txtgc"  />
                <input type="hidden" value="0" id="hidgdid"  class="hidgdid"/>
            </td>
            <td>
                <input type="text" name="textfield" tabindex="2" id="txtgn" style="width:100px;" />
            </td>
            <td style="width:35px;">
                <input type="text" name="textfield" tabindex="3" id="txtgwt" style="width:50px" />
            </td>
            <td>
              <input type="text" name="textfield" tabindex="4"  id="txtnwt" style="width: 40px;"/>
            </td>
            <td style="width:40px">
                <input type="text" tabindex="5" name="textfield" id="txtqty" style="width:30px" />
            </td>
              <td>
                <input type="text" name="textfield" tabindex="6" id="txtsid" style="width:60px" />
            </td>
            <td>
                <input type="text"  tabindex="7" id="txtremark" />
            </td>  
            <td>
                <label id="lblInDate"></label>
            </td>
            <td>
                <label id="lblbarcode" class="lblbarcode"></label>
            </td>
             <td>
                <input type="checkbox" id="chkIsLock" class="chkAddBarLock" />锁定
            </td>
            <td colspan="3" >
                <input type="button" tabindex="9" id="btnSaveBarcode" value="插入"/>
            </td>
        </tr>
        <asp:Repeater ID="rept" runat="server">
        <ItemTemplate>
      <tr id='ttt'>
        <td ><%# Container.ItemIndex + 1 %></td>
            <td title='<%# Eval("goodsid")%>'><%# Eval("goodscode")%></td>
            <td><%# Eval("goodsname")%></td>
            <td ><%# Eval("gwt")%></td>
            <td ><%# Eval("nwt")%></td>
            <td><%# Eval("qty") %></td>
            <td><%# Eval("stroageNo")%></td>
            <td><%# Eval("Remark") %></td>
            <td><%# Eval("createdate")%></td>
            <td><%# Eval("barcodevalue")%></td>
            <td><input type="checkbox" title="<%# Eval("id")%>"  class="flase"  <%# GetIsLock(Eval("isLocak").ToString())%>  />锁定 </td>
            <td>
                <img src='/images/jian.png' onclick="javascript:delClick(this)" alt='<%# Eval("id") %> ' width='16' height='17' class='jian'/>
            </td>
            <td>
                <img src='/images/icons/button_update.gif' onclick='javascript:barGet(this)' alt='<%# Eval("id") %> ' height='17'/>
            </td>
            <td><a href='/Storage/BarcodeSmallImg.aspx?barCodeID=<%# Eval("id") %>' target="_blank">条码重打</a></td>    
      </tr>
      </ItemTemplate>
       </asp:Repeater>
    </table>
    <div >
    		<asp:Button ID="btnSave" runat="server" Text="提交" onclick="btnSave_Click" 
                Width="38px"  CssClass="btnSave"/>&nbsp;&nbsp;&nbsp;
    		<asp:Button ID="btnCanel" runat="server" Text="取消" onclick="btnCanel_Click"/>
    </div>
    <div class="align"></div>
</div>
<script type="text/javascript" src="/js/ProduceStorageMaster.js"></script>
</asp:Content>
